package srx.open.com.bean;

import cn.bmob.v3.BmobObject;

/**
 * 课程的评论表.
 */
public class Comment extends BmobObject {

    private String content;
    private User usertt;
    private CoursePublish publishtt;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public CoursePublish getPublishtt() {
        return publishtt;
    }

    public void setPublishtt(CoursePublish publishtt) {
        this.publishtt = publishtt;
    }

    public User getUsertt() {
        return usertt;
    }

    public void setUsertt(User usertt) {
        this.usertt = usertt;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "content='" + content + '\'' +
                ", usertt=" + usertt +
                ", publishtt=" + publishtt +
                '}';
    }

}

/*
// 评论例子
User user = BmobUser.getCurrentUser(this, User.class); //

CoursePublish mCoursePublish = new CoursePublish();
mCoursePublish.setObjectId("83ce274594");

Comment comment = new Comment();
comment.setContent(content);
comment.setPublishtt(mCoursePublish);
comment.setUsertt(user);
comment.save(this, new SaveListener() {
... ...
}
 */